package com.atguigu.designpattern.prototype.improve;

public class Client {

	public static void main(String[] args) {

		System.out.println("使用原型模式完成对象创建");

		Sheep sheep = new Sheep("tom", 1, "白色");
		Sheep sheep2 = sheep.clone();
		Sheep sheep3 = sheep.clone();
		Sheep sheep4 = sheep.clone();
		Sheep sheep5 = sheep.clone();


		System.out.println(sheep);
		System.out.println(sheep2);
		System.out.println(sheep3);
		System.out.println(sheep4);
		System.out.println(sheep5);

	}

}
